package com.mtl.user.mapper;

import com.mtl.user.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.additional.idlist.IdListMapper;
import tk.mybatis.mapper.common.BaseMapper;
import java.util.List;

/**
 * 用户管理 Mapper 接口
 *
 * @author qms
 * @since 2019-08-06
 */
@Repository
public interface UserMapper  extends BaseMapper<User>, IdListMapper<User,Integer>{
    List<User> selectByCondition(@Param("searchKey") String searchKey);
    List<User> selectByNameAs(@Param("searchKey") String searchKey);
    User selectUserNameAndPassword(@Param("name") String searchKey,@Param("password") String password);
}
